package cn.zhentao.charge.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.zhentao.charge.mapper.ChargeInviteRecordMapper;
import cn.zhentao.charge.domain.ChargeInviteRecord;
import cn.zhentao.charge.service.IChargeInviteRecordService;

/**
 * 邀请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
@Service
public class ChargeInviteRecordServiceImpl implements IChargeInviteRecordService 
{
    @Autowired
    private ChargeInviteRecordMapper chargeInviteRecordMapper;

    /**
     * 查询邀请
     * 
     * @param id 邀请主键
     * @return 邀请
     */
    @Override
    public ChargeInviteRecord selectChargeInviteRecordById(Long id)
    {
        return chargeInviteRecordMapper.selectChargeInviteRecordById(id);
    }

    /**
     * 查询邀请列表
     * 
     * @param chargeInviteRecord 邀请
     * @return 邀请
     */
    @Override
    public List<ChargeInviteRecord> selectChargeInviteRecordList(ChargeInviteRecord chargeInviteRecord)
    {
        return chargeInviteRecordMapper.selectChargeInviteRecordList(chargeInviteRecord);
    }

    /**
     * 新增邀请
     * 
     * @param chargeInviteRecord 邀请
     * @return 结果
     */
    @Override
    public int insertChargeInviteRecord(ChargeInviteRecord chargeInviteRecord)
    {
        return chargeInviteRecordMapper.insertChargeInviteRecord(chargeInviteRecord);
    }

    /**
     * 修改邀请
     * 
     * @param chargeInviteRecord 邀请
     * @return 结果
     */
    @Override
    public int updateChargeInviteRecord(ChargeInviteRecord chargeInviteRecord)
    {
        return chargeInviteRecordMapper.updateChargeInviteRecord(chargeInviteRecord);
    }

    /**
     * 批量删除邀请
     * 
     * @param ids 需要删除的邀请主键
     * @return 结果
     */
    @Override
    public int deleteChargeInviteRecordByIds(Long[] ids)
    {
        return chargeInviteRecordMapper.deleteChargeInviteRecordByIds(ids);
    }

    /**
     * 删除邀请信息
     * 
     * @param id 邀请主键
     * @return 结果
     */
    @Override
    public int deleteChargeInviteRecordById(Long id)
    {
        return chargeInviteRecordMapper.deleteChargeInviteRecordById(id);
    }
}
